package com.spring.springboot.sys.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author 宋义州
 * @date 2022-08-11  21:18
 * @description 返回状态码枚举
 */
@Getter
@AllArgsConstructor
public enum ResponseCodeEnum {
    /**
     * 响应状态码枚举
     */

    SUCCESS(200, "操作成功!"),

    NO_PERMISSIONS(403, "无操作权限!"),

    PARAMETER_ERROR(400, "请求参数错误!"),

    WRONG_PASSWORD(40001, "密码错误!"),

    LOGIN_PARAM_MISSING(40002, "账号或密码为空!"),

    RESOURCE_LOSS(404, "资源不存在!"),

    USER_NOT_EXIST(40401, "账号不存在!"),

    RESOURCE_DELETE(410, "资源已被删除!"),

    KIDDING(418, "我是个茶壶!"),

    SERVE_ERROR(500, "服务器内部错误!"),

    VERIFICATION_CODE_ERROR(50001, "验证码错误!"),

    BAD_GATEWAY(502, "网关错误!");

    private final Integer code;

    private final String message;

}
